<?php

/**
 * Pwiff - PHP SWF Library
 *
 * LICENSE
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 *
 * @package    Pwiff
 * @subpackage Records
 * @copyright  Copyright (c) 2010 Steven Harris
 * @license    http://www.opensource.org/licenses/bsd-license.php New BSD License
 * @version    $Id: NonEdge.php 7 2010-02-17 20:43:45Z indigo.sunrise $
 */

/**
 * Base class for non-edge ShapeRecords.
 *
 * @package    Pwiff
 * @subpackage Records
 */
abstract class Pwiff_Record_Shape_NonEdge extends Pwiff_Record_Shape_Record
{
	/**
	 * Type flag. NonEdge = 0, Edge = 1.
	 *
	 * @var int
	 */
	protected $typeFlag = 0;
	
	/**
	 * Gets the length of the record.
	 *
	 * @return int
	 */
	abstract public function getRecordLength();
	
	/**
	 * Writes the type flag.
	 * 
	 * @param  Pwiff_Output $out
	 */
	public function write(Pwiff_Output $out)
	{
		parent::write($out);
	}
}
